package com.culture.bootdemo.po;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * @Author: wenjl
 * @Description:
 * @Date: 2020/12/29 17:54
 */
@Data
//调用basemapper的inert方法时，id自增使用数据库创建的序列
//@KeySequence(value = "EMAIL_HISTORY_ID_SEQ", dbType = DbType.ORACLE)
public class Emo {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;

    public Emo(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Emo( String name) {
        this.name = name;
    }
}
